import axios from '@/utils/request'

/**
 * 吃蛋糕有入口playcake
 * @param {*} userId 
 */
export function ifHomeCake(userId) {
  return axios({
    url: `/AnniversaryCake/ifHomeCake?t=${new Date().getTime()}`,
    methods: 'get',
    params: {userId}
  })
}

/**
 * 创建游戏队伍playcake
 * @param {*} userId 
 */
export function setEstablishCake(userId) {
  return axios({
    url: `/AnniversaryCake/setEstablishCake?t=${new Date().getTime()}`,
    methods: 'get',
    params: {userId}
  })
}

/**
 * 吃蛋糕playcake
 * @param {*} userId 
 */
export function eatOverCake(userId) {
  return axios({
    url: `/AnniversaryCake/eatOverCake?t=${new Date().getTime()}`,
    methods: 'get',
    params: {userId}
  })
}


/**
 * 加入游戏组playcake
 * @param {*} userId 
 * @param {*} phone 
 */
export function joinAddGroupCake(userId, phone) {
  return axios({
    url: `/AnniversaryCake/joinAddGroupCake?t=${new Date().getTime()}`,
    methods: 'get',
    params: {userId, phone}
  })
}
// console.log(axios)